import productname from "./productname"
import { get, post } from "../http"
import api from "../api"
import { AxiosPromise } from "axios"
import Productname from "../productnameModel"

class productnames implements productname {
    query(params?: any): AxiosPromise<any> {
        return get(api.queryname, params)
    }
    add(data: Productname): AxiosPromise<any> {
        return post(api.addname, data)
    }
}
export default new productnames()